package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;
import com.hitrust.gs.service.GSBaseBean;

import framework.core.Value;

public class GSProductBidView implements GSBaseBean{

	private String id = ""; //ID

	private String productId = ""; //PRODUCT_ID

	private String productCode = ""; //PRODUCT_CODE

	private int productType= Value.NULL_INT;  //PRODUCT_TYPE

	private String providerCode = ""; //PROVIDER_CODE

	private String remark = ""; //REMARK

	private String createTime = ""; //CREATE_TIME

	private String createUser = ""; //CREATE_USER

	private String createUserId = ""; //CREATE_USER_ID

	private String lastUpdateTime = ""; //LAST_UPDATE_TIME

	private String lastUpdateUser= ""; //LAST_UPDATE_USER

	private String lastUpdateUserId = ""; //LAST_UPDATE_USER_ID

	private String productName = "";

	private String gs_recorder_id;
	
	private String providerName;
	
	private String price;
	
	private String mode;
	
	private String space;
	
	private String unitPrive;
	
	public String getGs_recorder_id() {
		return gs_recorder_id;
	}

	public void setGs_recorder_id(String gsRecorderId) {
		gs_recorder_id = gsRecorderId;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}
	
	public int getProductType() {
		return productType;
	}

	public void setProductType(int productType) {
		this.productType = productType;
	}

	public String getProviderCode() {
		return providerCode;
	}

	public void setProviderCode(String providerCode) {
		this.providerCode = providerCode;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getCreateTime() {
		return createTime;
	}
	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(String createUserId) {
		this.createUserId = createUserId;
	}

	public String getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(String lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getLastUpdateUser() {
		return lastUpdateUser;
	}

	public void setLastUpdateUser(String lastUpdateUser) {
		this.lastUpdateUser = lastUpdateUser;
	}

	public String getLastUpdateUserId() {
		return lastUpdateUserId;
	}

	public void setLastUpdateUserId(String lastUpdateUserId) {
		this.lastUpdateUserId = lastUpdateUserId;
	}



	public String getProviderName() {
		return providerName;
	}

	public void setProviderName(String providerName) {
		this.providerName = providerName;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getMode() {
		return mode;
	}

	public void setMode(String mode) {
		this.mode = mode;
	}

	public String getSpace() {
		return space;
	}

	public void setSpace(String space) {
		this.space = space;
	}

	public String getUnitPrive() {
		return unitPrive;
	}

	public void setUnitPrive(String unitPrive) {
		this.unitPrive = unitPrive;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Object process(ResultSet aResultSet) throws SQLException {
		GSProductBidView bean = new GSProductBidView();
		bean.createTime = aResultSet.getString("create_time")== null ?"":aResultSet.getString("create_time");
		bean.createUser = aResultSet.getString("create_user")== null ?"":aResultSet.getString("create_user");
		bean.createUserId = aResultSet.getString("create_user_id")== null ?"":aResultSet.getString("create_user_id");
		bean.productName = aResultSet.getString("product_name")== null ?"":aResultSet.getString("product_name");
		bean.lastUpdateTime = aResultSet.getString("last_update_time")== null ?"":aResultSet.getString("last_update_time");
		bean.lastUpdateUser = aResultSet.getString("last_update_user")== null ?"":aResultSet.getString("last_update_user");
		bean.lastUpdateUserId = aResultSet.getString("last_update_user_id")== null ?"":aResultSet.getString("last_update_user_id");
		bean.productCode = aResultSet.getString("product_code")== null ?"":aResultSet.getString("product_code");
		bean.productId = aResultSet.getString("product_id")== null ?"":aResultSet.getString("product_id");
		bean.productType = aResultSet.getInt("product_type");
		bean.providerCode = aResultSet.getString("provider_code")== null ?"":aResultSet.getString("provider_code");
		bean.remark = aResultSet.getString("remark")== null ?"":aResultSet.getString("remark");
		
		return bean;
	}


}
